PESetSectionFormatFormula

Use PESetSectionFormatFormula to change the specified section format formula to the formula string you supply as a parameter. This function will only change the text of a formula which already exists in the report; you cannot use it to add a formula. When you give the user the ability to change the formula at print time, your link must include code to replace the formulaString parameter with a user-generated value.

C Syntax
BOOL CRPE_API PESetSectionFormatFormula (    
        short printJob,
        short sectionCode,
        short formulaName,
        const char FAR *formulaString );
Parameters

printJob

Specifies the print job for which you want to set a new selection formula string.

sectionCode

Specifies the Section Codes, for the report section(s) for which you want to set formatting options. See Working with section codes.

formulaName

Specifies the name of the formatting formula for which you want to supply a new string. Use one of the PE_FFN_XXX Area/Section Format Formula Constants.

formulaString

Specifies a pointer to the null-terminated string that you want to assign to the format formula.

Returns
Remarks
VB Syntax
Declare Function PESetSectionFormatFormula Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal sectionCode As Integer,
    ByVal formulaName As Integer, ByVal FormulaString As String ) As Integer
Delphi Syntax
function PESetSectionFormatFormula (
    printJob: Word;
    sectionCode: smallint;
    formulaName: smallint;
    formulaString: PChar
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com